<template>
  <el-dialog
    top="30px"
    width="1100px"
    class="dialog-sm"
    append-to-body
    title="异常申报"
    :visible.sync="visible"
    :close-on-click-modal="false"
    :before-close="beforeClose"
  >
    <el-tabs>
      <el-tab-pane label="删除项目">
        <prelim-edit-delete @close="beforeClose" @success="handleSuccess"></prelim-edit-delete>
      </el-tab-pane>
      <el-tab-pane label="替换项目" v-if="!isDelete">
        <prelim-edit-replace @close="beforeClose" @success="handleSuccess"></prelim-edit-replace>
      </el-tab-pane>
      <!-- <el-tab-pane label="已申报">
        <prelim-list></prelim-list>
      </el-tab-pane> -->
    </el-tabs>
  </el-dialog>
</template>

<script>
import PrelimEditReplace from '@/bank/views/hnd/PrelimEditReplace'
import PrelimEditDelete from '@/bank/views/hnd/PrelimEditDelete'
// import PrelimList from '@/bank/views/hnd/PrelimList'
export default {
  components: {
    PrelimEditReplace,
    // PrelimList,
    PrelimEditDelete,
  },
  props: {
    visible: Boolean,
    isDelete: { type: Boolean, default: false },
  },
  data() {
    return {}
  },

  created() {},
  methods: {
    beforeClose() {
      this.$emit('update:visible', false)
    },
    handleSuccess() {
      this.$emit('success', true)
    },
  },
}
</script>
<style lang="scss" scoped></style>
